<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Linear Equations System Solver: Coefficient Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Linear Equations System Solver
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classCoefficient-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Coefficient Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="coefficient_8h_source.html">coefficient.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3fadfdb5b838623d0ee50f461f5c1ee9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#a3fadfdb5b838623d0ee50f461f5c1ee9">NonZeroCoefficient</a> ()</td></tr>
<tr class="separator:a3fadfdb5b838623d0ee50f461f5c1ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c80d53081e97a275132b03ac79c32bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#a5c80d53081e97a275132b03ac79c32bd">operator+</a> (const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;)</td></tr>
<tr class="separator:a5c80d53081e97a275132b03ac79c32bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91ceefcac66c649aed0d178094008adf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#a91ceefcac66c649aed0d178094008adf">operator-</a> (const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;)</td></tr>
<tr class="separator:a91ceefcac66c649aed0d178094008adf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0084d16124b7935a35170906aba5c77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#ab0084d16124b7935a35170906aba5c77">operator/</a> (const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;)</td></tr>
<tr class="separator:ab0084d16124b7935a35170906aba5c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee86607eb24c1435e390c9bdd89de7b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#aee86607eb24c1435e390c9bdd89de7b8">operator*</a> (const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;)</td></tr>
<tr class="separator:aee86607eb24c1435e390c9bdd89de7b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ba8bb3d9786c166a338ff9d78f2927b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#a9ba8bb3d9786c166a338ff9d78f2927b">PrintCoefficientToStdout</a> ()</td></tr>
<tr class="separator:a9ba8bb3d9786c166a338ff9d78f2927b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aad1b032c168f93a53ec73c9396234da1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#aad1b032c168f93a53ec73c9396234da1">ReadCoefficientFromString</a> (const string)</td></tr>
<tr class="separator:aad1b032c168f93a53ec73c9396234da1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac917996687e24d48b1c9733ca6de3b3a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#ac917996687e24d48b1c9733ca6de3b3a">ZeroInstance</a> ()</td></tr>
<tr class="separator:ac917996687e24d48b1c9733ca6de3b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87ae28306c95a19ba5823d4d091fa8ae"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCoefficient.html">Coefficient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCoefficient.html#a87ae28306c95a19ba5823d4d091fa8ae">OneInstance</a> ()</td></tr>
<tr class="separator:a87ae28306c95a19ba5823d4d091fa8ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class is used to store and manipulate a linear equation. In some way, the idea of this class is to isolate the type begin used in order to be able to change for example from double to long double or rational numbers, as needed, without dependency on the rest of the system. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3fadfdb5b838623d0ee50f461f5c1ee9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Coefficient::NonZeroCoefficient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This method tell if the value of the <a class="el" href="classCoefficient.html">Coefficient</a> is zero.</p>
<dl class="section return"><dt>Returns</dt><dd>true|false, wether the <a class="el" href="classCoefficient.html">Coefficient</a> value is 0 or not. </dd></dl>

</div>
</div>
<a class="anchor" id="a87ae28306c95a19ba5823d4d091fa8ae"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::OneInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This method just gives an instance of <a class="el" href="classCoefficient.html">Coefficient</a> with value 1.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classCoefficient.html">Coefficient</a> instance with value 1. </dd></dl>

</div>
</div>
<a class="anchor" id="aee86607eb24c1435e390c9bdd89de7b8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;&#160;</td>
          <td class="paramname"><em>c1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Operator * overload.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>the coefficient for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result after applying the operation. </dd></dl>

</div>
</div>
<a class="anchor" id="a5c80d53081e97a275132b03ac79c32bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;&#160;</td>
          <td class="paramname"><em>c1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Operator + overload.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>the coefficient for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result after applying the operation. </dd></dl>

</div>
</div>
<a class="anchor" id="a91ceefcac66c649aed0d178094008adf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;&#160;</td>
          <td class="paramname"><em>c1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Operator - overload.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>the coefficient for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result after applying the operation. </dd></dl>

</div>
</div>
<a class="anchor" id="ab0084d16124b7935a35170906aba5c77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::operator/ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCoefficient.html">Coefficient</a> &amp;&#160;</td>
          <td class="paramname"><em>c1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Operator / overload.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c1</td><td>the coefficient for the operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the result after applying the operation. </dd></dl>

</div>
</div>
<a class="anchor" id="a9ba8bb3d9786c166a338ff9d78f2927b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Coefficient::PrintCoefficientToStdout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This method just prints the oefficient. </p>

</div>
</div>
<a class="anchor" id="aad1b032c168f93a53ec73c9396234da1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::ReadCoefficientFromString </td>
          <td>(</td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This method reads a coefficient from a string.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>The string that contains the <a class="el" href="classCoefficient.html">Coefficient</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac917996687e24d48b1c9733ca6de3b3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoefficient.html">Coefficient</a> Coefficient::ZeroInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This method just gives an instance of <a class="el" href="classCoefficient.html">Coefficient</a> with 0 value.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classCoefficient.html">Coefficient</a> instance with 0 value. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="coefficient_8h_source.html">coefficient.h</a></li>
<li>coefficient.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 24 2013 10:21:33 for Linear Equations System Solver by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
